• Articles
  • Api Documentation
Show / Hide Table of Contents
  • DiplomaTT
    • App
    • DialogCloseRequestedEventArgs
    • DialogService
    • IDialog
    • IDialogRequestClose
    • IDialogService
    • MainWindow
  • DiplomaTT.DB
    • DataProvider
    • IDataProvider
    • Person
    • PersonEntities
    • Token
  • ImageDemo
    • App
    • MainWindow
  • ImageDemo.Viewmodels
    • DetectedFace
    • MainWindowViewModel
    • PersonMatchResult
  • PersonManager
    • App
  • PersonManager.ViewModels
    • EnrollPhotoViewModel
    • MainWindowViewModel
    • PersonalDataVisual
    • PersonDetailViewModel
    • PersonDetailViewModel.DetailDialogMode
  • PersonManager.Views
    • EnrollPhoto
    • MainWindow
    • PersonDetail
  • TestApp
    • App
    • MainWindow
  • TestApp.Views
    • ResultDialog

Class EnrollPhotoViewModel

Inheritance
System.Object
EnrollPhotoViewModel
Implements
System.ComponentModel.INotifyPropertyChanged
IDialogRequestClose
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: PersonManager.ViewModels
Assembly: PersonManager.dll
Syntax
public class EnrollPhotoViewModel : INotifyPropertyChanged, IDialogRequestClose

Constructors

EnrollPhotoViewModel(IDialogService)

ctor

Declaration
public EnrollPhotoViewModel(IDialogService dialogService)
Parameters
Type Name Description
IDialogService dialogService

Properties

_dialogService

instance dialog service (sprava dialogovych oken)

Declaration
protected IDialogService _dialogService { get; }
Property Value
Type Description
IDialogService

CancelCommand

Vrati Command, ktery se spusti po stisknuti tlacitka Cancel

Declaration
public ICommand CancelCommand { get; protected set; }
Property Value
Type Description
System.Windows.Input.ICommand

DetectedFacesCount

Declaration
public int DetectedFacesCount { get; set; }
Property Value
Type Description
System.Int32

DetectedFacesList

Declaration
public ObservableCollection<Image<Bgr, byte>> DetectedFacesList { get; set; }
Property Value
Type Description
System.Collections.ObjectModel.ObservableCollection<Emgu.CV.Image<Emgu.CV.Structure.Bgr, System.Byte>>

EnableComboBox

Declaration
public bool EnableComboBox { get; set; }
Property Value
Type Description
System.Boolean

EnableStartButton

Declaration
public bool EnableStartButton { get; set; }
Property Value
Type Description
System.Boolean

EnrollMethodsList

List enrollovacich metod

Declaration
public List<string> EnrollMethodsList { get; set; }
Property Value
Type Description
System.Collections.Generic.List<System.String>

EnrollResult

Declaration
public string EnrollResult { get; set; }
Property Value
Type Description
System.String

FacesFound

Declaration
public bool FacesFound { get; set; }
Property Value
Type Description
System.Boolean

ManagedDetectedFaces

Declaration
public BitmapSource ManagedDetectedFaces { get; set; }
Property Value
Type Description
System.Windows.Media.Imaging.BitmapSource

ManagedToken

Declaration
public byte[] ManagedToken { get; set; }
Property Value
Type Description
System.Byte[]

NewFrame

Declaration
public BitmapSource NewFrame { get; set; }
Property Value
Type Description
System.Windows.Media.Imaging.BitmapSource

NextFaceCommand

Vrati Command, ktery se spusti po stisknuti tlacitka Dalsi (tvar)

Declaration
public ICommand NextFaceCommand { get; set; }
Property Value
Type Description
System.Windows.Input.ICommand

NextFaceCommandEnabled

Declaration
public bool NextFaceCommandEnabled { get; set; }
Property Value
Type Description
System.Boolean

OkEnabled

Priznak aktivace tlacitka Ok

Declaration
public bool OkEnabled { get; }
Property Value
Type Description
System.Boolean

PhotoEnrollComplete

Declaration
public bool PhotoEnrollComplete { get; set; }
Property Value
Type Description
System.Boolean

PrevFaceCommand

Vrati Command, ktery se spusti po stisknuti tlacitka Predchozi (tvar)

Declaration
public ICommand PrevFaceCommand { get; set; }
Property Value
Type Description
System.Windows.Input.ICommand

PrevFaceCommandEnabled

Declaration
public bool PrevFaceCommandEnabled { get; set; }
Property Value
Type Description
System.Boolean

SelectedEnrollMethod

Declaration
public int SelectedEnrollMethod { get; set; }
Property Value
Type Description
System.Int32

SelectedFace

Declaration
public int SelectedFace { get; set; }
Property Value
Type Description
System.Int32

SelectedFile

Declaration
public string SelectedFile { get; set; }
Property Value
Type Description
System.String

StartEngineCommand

Vrati Command, ktery se spusti po stisknuti tlacitka Poridit snimek

Declaration
public ICommand StartEngineCommand { get; set; }
Property Value
Type Description
System.Windows.Input.ICommand

SubmitCommand

Vrati Command, ktery se spusti po stisknuti tlacitka Ok

Declaration
public ICommand SubmitCommand { get; protected set; }
Property Value
Type Description
System.Windows.Input.ICommand

Window

Declaration
public Window Window { get; set; }
Property Value
Type Description
System.Windows.Window

Methods

Convert(Bitmap, PixelFormat)

Metoda pro prevedeni obrazu z formatu Bitmap na format BitmapSource

Declaration
public BitmapSource Convert(Bitmap bitmap, PixelFormat pf)
Parameters
Type Name Description
System.Drawing.Bitmap bitmap
System.Windows.Media.PixelFormat pf
Returns
Type Description
System.Windows.Media.Imaging.BitmapSource

EnrollMethodChanged()

Metoda pro aktualizaci vybrane metody

Declaration
protected void EnrollMethodChanged()

PrepareEngine()

Metoda pro pripraveni zpusobu pridani fotky

Declaration
protected void PrepareEngine()

StartEngine()

Metoda pro spusteni snimani obliceju

Declaration
public void StartEngine()

SwitchFace()

Metoda pro prepnuti mezi obliceji

Declaration
protected void SwitchFace()

Events

CloseRequested

Event pro zajisteni obsluhy zavirani okna

Declaration
public event EventHandler<DialogCloseRequestedEventArgs> CloseRequested
Event Type
Type Description
System.EventHandler<DialogCloseRequestedEventArgs>

PropertyChanged

Event pro zajisteni bindovani a propsani zmen

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

System.ComponentModel.INotifyPropertyChanged
IDialogRequestClose
Back to top Generated by DocFX